projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8950bf
)
GtkTextHandle: Better draw() implementation
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 13 Jul 2014 17:57:23 +0000
(13:57 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 13 Jul 2014 17:58:16 +0000
(13:58 -0400)
Conceptually, text handles are boxes, whose content is a 'handle',
so draw background, frame and handle. With this, and the previous
commit, the cursor-handle theming in Adwaita now works as intended.
gtk/gtktexthandle.c
patch
|
blob
|
history
diff --git
a/gtk/gtktexthandle.c
b/gtk/gtktexthandle.c
index ab0495513f2cedebf06d38507bab9e98a38b6bd3..74023f4c4aa0f1de831ca24894ad11657970e1ab 100644
(file)
--- a/
gtk/gtktexthandle.c
+++ b/
gtk/gtktexthandle.c
@@
-129,6
+129,8
@@
_gtk_text_handle_draw (GtkTextHandle *handle,
GTK_STYLE_CLASS_TOP);
gtk_render_background (context, cr, 0, 0, width, height);
+ gtk_render_frame (context, cr, 0, 0, width, height);
+ gtk_render_handle (context, cr, 0, 0, width, height);
gtk_style_context_restore (context);
cairo_restore (cr);